🎯 Learning Objectives
By completing this chapter, you will learn:
- The necessity of an operating system
- The functions of an operating system
- User interfaces of operating systems
- Services provided by operating systems
- Types of operating systems
- Advantages of operating systems
- Utility programs of operating systems
- Drives, folders, and files management
💻 5.1 Introduction to Operating Systems
Computer Components
A computer consists of three main components:
🔄 The Booting Process
When you power up a computer, the following sequence occurs:
CPU activates BIOS
Power On Self-Test checks hardware
Master Boot Record is read
Operating System loads to RAM
OS takes control and displays UI
📊 Types of Software
🖥️ System Software Components
1. Operating System
The Operating System manages hardware and software, allowing users to utilize computer functions effectively.
2. Utility Software
Used to manage and analyze software and protect from security threats.
- Anti-Virus Software: Protects from virus infections
- Disk Formatting: Prepares storage devices for saving files
3. Language Translators
Translate high-level programming languages into machine language (0s and 1s).
- Assembler: Translates assembly language
- Compiler: Translates entire program at once
- Interpreter: Translates line by line
📱 Popular Operating Systems
| Operating System | Type | Description |
|---|---|---|
| Microsoft Windows | Proprietary | Most popular worldwide. Versions: XP, Vista, 7, 8, 10, 11. Includes Windows Server and Windows Mobile. |
| Apple Mac OS | Proprietary | Developed by Apple Inc. Only runs on Apple computers. |
| Ubuntu | Free & Open Source | Based on Linux. Available at www.ubuntu.com |
| Android | Free & Open Source | Developed by Google. Mainly for mobile devices. |
| Hanthana Linux | Free & Open Source | Based on Linux. Available at www.hanthana.org |
🔧 5.2 Types of Operating Systems
⚙️ 5.3 Services of an Operating System
The Operating System provides two main services:
- Managing the hardware of a computer
- Providing user interface
1. Managing the Hardware
i. Process Management
- Reading the document from storage
- Processing the print command
- Sending data to printer
- Managing print queue
The OS manages CPU time allocation, memory allocation, and I/O devices for each process.
ii. Memory Management
RAM plays a crucial role in computer operation. Memory management ensures:
- Sufficient memory allocation for each process
- Memory is freed when a process ends
- Efficient use of both Primary (RAM) and Secondary memory
- Right-click on "This PC" or "My Computer"
- Select "Properties"
- Check "Installed RAM" or "Memory"
iii. Device Management
The OS manages peripheral devices using:
- Device Controllers: Control hardware devices
- Device Drivers: Software that enables OS to communicate with hardware
iv. File Management
The OS manages files and folders through:
- Creating and saving new files
- Deleting unnecessary files
- Organizing folders
- Renaming files and folders
- Changing file locations
- Creating backups
v. Security Management
The OS protects against security threats:
- Malware protection
- Preventing unauthorized access
- User authentication (passwords, biometrics)
- Data encryption
vi. Network Management
The OS supports:
- Wired and wireless connectivity
- Sharing resources (printers, files) across networks
- Remote computer access
- Cloud computing services
2. Providing User Interface
a) Command Line Interface (CLI)
Early operating systems used CLI where commands are typed using a keyboard.
dir- List files and folderscd- Change directorymkdir- Create new folderdel- Delete filescopy- Copy files
b) Graphical User Interface (GUI)
Modern OS use graphics for easier interaction. GUI uses WIMP components:
🛠️ 5.4 Utility Programs
Utility programs help in managing and maintaining the computer system:
| Utility Program | Function |
|---|---|
| Backup Software | Copy files and backup hard drives |
| Disk Scanner | Check errors in hard drive |
| Disk Defragmentation | Reorganize hard disk for better efficiency |
| File Compression | Compress large files into smaller files |
| Task Manager | Display information about processes and programs |
| Anti-Virus | Identify and eliminate malware |
| Clipboard | Temporary storage for cut/copy operations |
| Disk Partitioning | Divide drive into multiple logical drives |
| Network Utilities | Analyze and configure network connectivity |
Important Utility Operations
1. Disk Partitioning
Dividing a physical hard drive into multiple logical partitions.
Why partition?
- Save different items in different places
- Install multiple operating systems
- Meet OS requirements
- Better organization and management
2. Disk Formatting
Preparing a storage device for data storage using a specific file format.
| File System | Operating System | Description |
|---|---|---|
| FAT16, FAT32 | Windows (older versions) | File Allocation Table systems |
| NTFS | Windows (modern) | New Technology File System |
| ext4 | Linux | Fourth Extended File System |
| ReiserFS | Linux | Journaling file system |
3. Disk Defragmentation
Reorganizing fragmented files to improve disk performance.
📁 5.5 File Systems and Management
File Structure
Every file has two components:
- File Name: Identifies the file
- File Extension: Indicates the file type
- File Name: MyDocument
- Separator: . (dot/full stop)
- Extension: docx (Microsoft Word document)
| Extension | File Type |
|---|---|
| .exe | Executable program |
| .docx | Microsoft Word document |
| .xlsx | Microsoft Excel spreadsheet |
| .pptx | Microsoft PowerPoint presentation |
| .accdb | Microsoft Access database |
| .jpg/.png | Image files |
| .mp3/.mp4 | Audio/Video files |
| Portable Document Format |
Drives and Folders
Drives
Storage locations in Windows are labeled with letters:
- C: Primary hard drive partition (usually where OS is installed)
- D:, E:, F: Additional partitions or drives
- G:, H: CD/DVD drives, USB drives
Folders (Directories)
Folders organize files into groups for easy management.
- Select the drive where you want to create the folder
- Click File → New → Folder (or right-click → New → Folder)
- Type a meaningful folder name
- Press Enter
File Operations
| Operation | Method 1 | Method 2 | Keyboard Shortcut |
|---|---|---|---|
| Copy | Right-click → Copy | Edit → Copy | Ctrl + C |
| Cut | Right-click → Cut | Edit → Cut | Ctrl + X |
| Paste | Right-click → Paste | Edit → Paste | Ctrl + V |
| Delete | Right-click → Delete | File → Delete | Delete key |
| Rename | Right-click → Rename | File → Rename | F2 |
Recycle Bin
When you delete files, they go to the Recycle Bin temporarily. You can:
- Restore: Bring back deleted files to their original location
- Empty: Permanently delete all files in Recycle Bin
📌 Chapter Summary
- Operating System is essential for operating a computer
- All application software runs on the Operating System
- OS provides user interface (CLI and GUI) for interaction
- GUI is more user-friendly than CLI
- Types of OS: Single User, Multi-User, Multi-Tasking, Real-Time
- OS manages six key resources: Process, Memory, Device, File, Security, Network
- Hard disk must be partitioned and formatted before installing OS
- Files consist of File Name and Extension
- Folders organize files within drives
- Defragmentation improves disk performance (mainly in Windows)
- Utility programs help maintain and protect the system
📝 Practice Questions & Answers
Click on any question to reveal the answer!
- CPU activates the BIOS (Basic Input Output System)
- POST (Power On Self-Test) checks all hardware using CMOS memory
- MBR (Master Boot Record) is read from the boot drive
- Operating System is loaded into RAM
- OS takes control and displays the user interface
- Operating Systems (Windows, Linux, Mac OS)
- Utility Software (Anti-virus, Disk formatter)
- Language Translators (Assembler, Compiler, Interpreter)
- Word Processing (MS Word)
- Spreadsheets (MS Excel)
- Database (MS Access)
- Web Browsers (Chrome, Firefox)
- Computer Games
2. Multi-User OS: Allows multiple users simultaneously (Example: Linux, Windows Server)
3. Multi-Tasking OS: Runs multiple processes at the same time (Example: Windows 7, Windows 8, Ubuntu, Mac OS)
4. Real-Time OS: Provides instant output without delays (Example: ATM machines, Calculators)
Example: When printing a document:
- The OS divides printing into small processes
- Allocates CPU time to each process
- Manages memory for the print job
- Controls the printer device
- Prioritizes tasks (e.g., typing while printing)
Importance:
- Ensures sufficient memory allocation for each process
- Frees memory when a process ends
- Prevents memory wastage
- Uses both Primary (RAM) and Secondary memory efficiently
Why needed:
- Translates OS commands into device-specific instructions
- Enables full functionality of the device
- Allows the OS to control the hardware properly
| CLI (Command Line Interface) | GUI (Graphical User Interface) |
|---|---|
| Text-based interface | Graphics-based interface |
| Uses keyboard for commands | Uses mouse/touch for navigation |
| Requires knowledge of commands | User-friendly with visual elements |
| Faster for experienced users | Easier for beginners |
| Example: Command Prompt (CMD) | Example: Windows Desktop |
| Uses text commands only | Uses WIMP (Windows, Icons, Menus, Pointer) |
W - Windows: Rectangular areas displaying application content (e.g., document windows, browser windows)
I - Icons: Small graphical symbols representing programs, files, or folders (e.g., Recycle Bin icon, folder icons)
M - Menus: Lists of commands and options organized by category (e.g., File menu, Edit menu, View menu)
P - Pointer: The mouse cursor used to navigate and select items on screen (changes shape based on context - arrow, hand, I-beam, etc.)
2. Disk Scanner: Checks hard drives for errors and bad sectors
3. Disk Defragmentation: Reorganizes fragmented files to improve disk performance
4. Anti-Virus Software: Protects computer by identifying and eliminating malicious software (malware)
5. Task Manager: Displays information about running processes, programs, and system performance
Reasons for partitioning:
- Organization: Save different types of files in different places (e.g., software in C:, data in D:)
- Multiple OS: Install more than one Operating System (e.g., Windows and Ubuntu)
- OS Requirements: Some operating systems require separate partitions
- Better Management: Easier backup and data management
Purpose:
- Creates a file system structure
- Makes the drive ready for data storage
- Removes all existing data
Formatting deletes all data on the drive permanently. Always create a backup copy of important data before formatting!
Common File Systems: FAT16, FAT32, NTFS (Windows), ext4, ReiserFS (Linux)
What is Fragmentation?
When a large file is broken into pieces and stored in different locations on the disk. This happens when:
- Files are edited multiple times and grow in size
- Empty spaces from deleted files are reused
- Disk becomes full and files must be split
- Slower file reading/writing
- Reduced system performance
- Longer loading times
Windows needs regular defragmentation. Linux rarely needs it because it uses intelligent file storage methods that prevent fragmentation automatically by leaving adequate space between files and relocating files when needed.
1. File Name: The name given to identify the file
2. File Extension: Indicates the file type/format
Examples:
| Complete File Name | File Name | Extension | File Type |
|---|---|---|---|
| Report.docx | Report | .docx | Word Document |
| Budget.xlsx | Budget | .xlsx | Excel Spreadsheet |
| Photo.jpg | Photo | .jpg | Image File |
| Program.exe | Program | .exe | Executable Program |
Note: The OS identifies file types using extensions. Extensions are often hidden by default but can be made visible in folder settings.
- Creates a duplicate of the file/folder
- Original file remains in the source location
- A copy appears in the destination location
- Result: File exists in BOTH locations
- Shortcut: Ctrl+C (copy), Ctrl+V (paste)
- Moves the file/folder
- Original file is removed from source location
- File appears in the destination location
- Result: File exists in destination location ONLY
- Shortcut: Ctrl+X (cut), Ctrl+V (paste)
How it works:
- When you delete a file, it moves to the Recycle Bin
- The file is not permanently deleted yet
- You can restore the file to its original location
- Emptying the Recycle Bin permanently deletes all files
- Open Recycle Bin
- Select the file to restore
- Click File → Restore or right-click → Restore
- File returns to its original location
- Files deleted from external drives (USB) bypass the Recycle Bin
- Files deleted using Shift+Delete are permanently deleted
- Once Recycle Bin is emptied, files cannot be easily recovered
1. Process Management: Manages running programs and tasks, allocates CPU time
2. Memory Management: Manages RAM allocation and ensures efficient memory use
3. Device Management: Controls peripheral devices using device drivers and controllers
4. File Management: Organizes and manages files and folders on storage devices
5. Security Management: Protects against threats, manages user authentication and access control
6. Network Management: Manages network connections, enables resource sharing and remote access
- Microsoft Windows - Most popular worldwide (Windows 7, 8, 10, 11)
- Apple Mac OS (macOS) - Only runs on Apple computers
- Microsoft Windows Server - For server environments
- Ubuntu - Based on Linux, available at www.ubuntu.com
- Android - Developed by Google for mobile devices
- Hanthana Linux - Linux-based, available at www.hanthana.org
- Physical components of a computer with definite shape
- Can be touched and seen
- Examples: Mouse, keyboard, monitor, hard disk, printer, CPU
- Permanent software stored in ROM (Read Only Memory)
- Contains booting instructions
- Provides basic instructions when computer starts
- Examples: BIOS, Bootstrap loader
- Set of instructions/programs that tell the computer what to do
- Cannot be touched (intangible)
- Stored on storage devices and loaded into RAM
- Examples: Operating Systems, Word processors, Games, Web browsers
1. Acts as an Interface:
- Provides user-friendly interface between user and hardware
- Makes computers accessible to non-technical users
- Controls all hardware components (CPU, memory, devices)
- Allocates resources efficiently among programs
- All application programs run on the OS
- Provides platform for software installation and execution
- File management and organization
- Security and access control
- Network connectivity
- Users don't need to write complex machine code
- Handles technical details automatically
- Check your computer's specifications (RAM, processor, OS version)
- Practice creating folders and organizing files
- Learn 10 keyboard shortcuts for file operations
- Open Task Manager and observe running processes
- Find and view file properties of different file types
- Practice switching between different windows using Alt+Tab
- Explore the Control Panel settings
- Check the capacity and free space of your drives
✅ Study Tips for Success
- Understand concepts, don't just memorize
- Practice file operations regularly on your computer
- Draw diagrams to remember hierarchical structures
- Relate examples to your daily computer usage
- Create comparison tables for similar concepts (CLI vs GUI, Copy vs Cut)
- Test yourself using the Q&A section regularly
- Discuss concepts with classmates
- Watch videos about OS operations for better understanding